<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <title>Vue 3 属性绑定</title>
</head>
<body>
<div id="app">
  <img v-bind:src="imgUrl" width="200" /><p></p>
  <a :href="url">点击访问</a>
  
</div>

<script src="https://unpkg.com/vue@3"></script>
<script>
  const app = Vue.createApp({
    data() {
      return {
        url: 'https://www.vuejs.org',
        imgUrl: '/static/image/spring.png'
      };
    }
  });
  app.mount('#app');
</script>
</body>
</html>